//
//  PopTipView.h
//  YunGui
//
//  Created by Hanen 3G 01 on 16/4/25.
//  Copyright © 2016年 hanen. All rights reserved.
//

#import <UIKit/UIKit.h>

@class SQButton;
@class PopTipView;
@protocol PopTipViewDelegate <NSObject>

//- (void)clickBackView;
- (void)clickLeftbtnWith:(PopTipView *)popView;
- (void)clickRightbtnWith:(PopTipView *)popView;
@end

@interface PopTipView : UIView


@property (nonatomic, strong) UILabel * tipsLabel;



@property (nonatomic, strong) SQButton* rightBtn;
@property (nonatomic, strong) SQButton* leftBtn;//这个按钮一定要有 如果只有一个按钮的话
@property (nonatomic, strong) NSString *lefttext;
@property (nonatomic, strong) NSString *righText;
@property (nonatomic, assign) BOOL isShowImage;
@property (nonatomic, weak) id<PopTipViewDelegate> delegate;
@property (nonatomic, strong) UIButton *backView;
@property (nonatomic, assign) BOOL BackEnabled;
@property (nonatomic, assign) int changeIndex;//改变index的 按钮的点击颜色 1为左边的按钮 2为右边的按钮

@property (nonatomic, strong) UIButton* rightButton;
@property (nonatomic, strong) UIButton* leftButton;
@property (nonatomic, strong) NSString *leftTitle;
@property (nonatomic, strong) NSString *righTitle;


- (void)showToView:(UIView *)view;
- (void)dimiss;
@end
